package com.se.mapper;

import com.se.domain.mysql.CategoryDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Collection;
import java.util.List;

@Mapper
public interface CatMapper {

    @Select("select * from category where active = true")
    List<CategoryDO> listAll();

    List<CategoryDO> listByCatIds(@Param("list") Collection<Long> catIds);
}
